@extends('admin.layouts.app')
@section('content')

                        <!-- Page-Title -->
                        <div class="row">
                            <div class="col-sm-12">
                                <h4 class="page-title">平台管理</h4>
                                <ol class="breadcrumb">
                                    <li><a href="#">系统</a></li>
                                    <li><a href="{{url('zadmin/threeds')}}">场景管理</a></li>
                                    <li class="active">修改场景</li>
                                </ol>
                            </div>
                        </div>
                        
                        <div class="row">
                          <div class="col-lg-12">
                            <div class="card-box">
                            <h2 class="m-t-0 header-title">修改场景</h2>
                            <hr/>
                             
                              @include('admin.common.error')
                              <div class="row">
                                <div class="col-md-9">
              <form class="form-horizontal" role="form" action="{{url('zadmin/threeds/'.$data->id)}}" method="post" enctype="multipart/form-data">
{{ method_field('PUT') }}
              <div class="form-group">
                <label class="col-md-2 control-label">标题</label>
                <div class="col-md-10">
                  <input type="text" class="form-control" name="name" required="" value="{{$data->name}}" >
                </div>
              </div>

             

              <div class="form-group">
                <label class="col-md-2 control-label">东</label>
                <div class="col-md-2">
                    <img src="{{$data->pic1}}"  width="45" />
                </div>
                <div class="col-md-4">
                    <input type="file" class="form-control" name="pic1" />
                </div> 
                <div class="col-md-4">
                    <select class="form-control" name="next1">
                      <option value="">选择下一个场景</option>
                      @foreach($list as $v)
                      <option value="{{$v->id}}" {{$data->next1==$v->id?'selected':''}}>{{$v->name}}</option>
                      @endforeach
                    </select>
                </div>            
              </div> 
              <div class="form-group">
                <label class="col-md-2 control-label">南</label>
                <div class="col-md-2">
                    <img src="{{$data->pic2}}"  width="45" />
                </div>
                <div class="col-md-4">
                    <input type="file" class="form-control" name="pic2" />
                </div>
                <div class="col-md-4">
                    <select class="form-control" name="next2">
                      <option value="">选择下一个场景</option>
                      @foreach($list as $v)
                      <option value="{{$v->id}}" {{$data->next2==$v->id?'selected':''}}>{{$v->name}}</option>
                      @endforeach
                    </select>
                </div>             
              </div>
              <div class="form-group">
                <label class="col-md-2 control-label">西</label>
                <div class="col-md-2">
                    <img src="{{$data->pic3}}"  width="45" />
                </div>
                <div class="col-md-4">
                    <input type="file" class="form-control" name="pic3" />
                </div>   
                <div class="col-md-4">
                    <select class="form-control" name="next3">
                      <option value="">选择下一个场景</option>
                      @foreach($list as $v)
                      <option value="{{$v->id}}" {{$data->next3==$v->id?'selected':''}}>{{$v->name}}</option>
                      @endforeach
                    </select>
                </div>           
              </div>
              <div class="form-group">
                <label class="col-md-2 control-label">北</label>
                <div class="col-md-2">
                    <img src="{{$data->pic4}}"  width="45" />
                </div>
                <div class="col-md-4">
                    <input type="file" class="form-control" name="pic4" />
                </div>   
                <div class="col-md-4">
                    <select class="form-control" name="next4">
                      <option value="">选择下一个场景</option>
                      @foreach($list as $v)
                      <option value="{{$v->id}}" {{$data->next4==$v->id?'selected':''}}>{{$v->name}}</option>
                      @endforeach
                    </select>
                </div>            
              </div>
              <div class="form-group">
                <label class="col-md-2 control-label">上</label>
                <div class="col-md-2">
                    <img src="{{$data->pic5}}"  width="45" />
                </div>
                <div class="col-md-8">
                    <input type="file" class="form-control" name="pic5" />
                </div>             
              </div>
              <div class="form-group">
                <label class="col-md-2 control-label">下</label>
                <div class="col-md-2">
                    <img src="{{$data->pic6}}"  width="45" />
                </div>
                <div class="col-md-8">
                    <input type="file" class="form-control" name="pic6" />
                </div>             
              </div>

          
                                              

                                              

                                              <div class="form-group text-center">
                                                  
                                                  <button type="submit" class="btn btn-info waves-effect waves-light">保存</button>
                                              </div>
                                              
                                              
                             {{csrf_field()}}
                                          </form>
                                </div>
                                
                              </div>

                             
                              
                              
                            </div>
                                
                            </div> <!-- end col -->

                            
                        </div>
@endsection
                        
                        
                        

                  
            
    @section('modal')        
     
    @endsection        
       

           



    
        @section('js')

        
        @endsection
    
